package ONLINE_EXAM;

public class tx1 {
    /**
     * 思路：中序遍历
     * @param root
     * @return
     */
    public TreeNode solve (TreeNode root) {
        // write code here
        if(root.left == null){
            root.right= null;
            return root;
        }

        solve(root.left);
        solve(root.right);

        return root;

    }


}
